﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XinjeMesProgram.Entities.Maintenance
{
    public class MaintenanceCostModel
    {
        /// <summary>
        /// 唯一标识.
        /// </summary>
        [Key]
        [Column(TypeName = "nvarchar(100)")]
        public string ID { get; set; }

        /// <summary>
        /// 费用报告申请日期.
        /// </summary>
        [Column(TypeName = "datetime")]
        public DateTime? ApplyTime { get; set; }

        /// <summary>
        /// 费用支付时间(天).
        /// </summary>
        [Column(TypeName = "float")]
        public float? PayTime { get; set; }

        /// <summary>
        /// 解锁时间.
        /// </summary>
        [Column(TypeName = "datetime")]
        public DateTime? UnlockTime { get; set; }

        /// <summary>
        /// 应收钱.
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        public string? Receivable { get; set; }

        /// <summary>
        /// 实收钱.
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        public string? NetReceipts { get; set; }

        /// <summary>
        /// 费用报告.
        /// </summary>
        [Column(TypeName = "text")]
        public string? Context { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column(TypeName = "nvarchar(100)")]
        public string? ChargeListId { get; set; }
    }
}
